﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Prototypes
{
    /// <summary>
    /// Interaction logic for AllComplaints.xaml
    /// </summary>
    public partial class AllComplaints : UserControl
    {
        public class Information
        {
            public long CaseNum { get; set; }
            public string Victim { get; set; }
            public string Aggressor { get; set; }
            public string Informer { get; set; }
            public string VictimCi { get; set; }
            public string AggressorCi { get; set; }
            public string InformerCi { get; set; }
            public string AggressionType { get; set; }
        }
        public AllComplaints()
        {
            InitializeComponent();
            listViewComplaints.DataContext = new ObservableCollection<Information>()
                            {
                                new Information() {CaseNum=12352, Victim = "Peter Ruiz", VictimCi = "4523422", Aggressor = "Pedro Mamani", Informer = "Paquito Rivera", AggressorCi="1235537", InformerCi="1234122", AggressionType="Agresion Física"},
                                new Information() {CaseNum=432, Victim = "Ana Lobardo", VictimCi = "3452346", Aggressor = "Luis Choke", Informer = "Antonio De Sucre", AggressorCi="6354565", InformerCi="7533454", AggressionType="Agresion Sexual"},
                                new Information() {CaseNum=23, Victim = "John Clinton", VictimCi = "6234164", Aggressor = "Harry Coca", Informer = "Maria Ruiz", AggressorCi="86734554", InformerCi="3457233", AggressionType="Agresion Psicológica, Física"}
                            };
        }

        private void MenuItem2_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new MedicalApplication());
        }

        private void MenuItem3_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new DeclarationsRegister());
        }

        private void MenuItem4_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new AudienceReport());
        }
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new PsicologistReport());
        }

        private void ViewComplaint_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new ViewComplaint());
        }


        private void EditCopmlaint_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new EditComplaint());
        }

        private void ViewPsico_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new AllPsicologistReports());
        }
    }
}
